<?php
	define('PATH_APPLI',	dirname(__FILE__).'/../');
	
	define('PATH_INCLUDE',	PATH_APPLI.'include/');
	define('PATH_CLASSES',	PATH_APPLI.'classes/');
	
	define('PATH_OBJECT',	PATH_CLASSES.'dataObject/');
	
	$sIniFile = realpath(dirname(__FILE__)).'/config.ini';
	
	if (!is_file($sIniFile))
		die("Pas de fichier de configuration ($sIniFile)");
	
	$aConf = parse_ini_file($sIniFile);
	if (!defined('_SGBD_HOST')) define('_SGBD_HOST', $aConf['_SGBD_HOST']);
	if (!defined('_SGBD_BDD')) define('_SGBD_BDD', $aConf['_SGBD_BDD']);
	if (!defined('_SGBD_USER')) define('_SGBD_USER', $aConf['_SGBD_USER']);
	if (!defined('_SGBD_PASS')) define('_SGBD_PASS', $aConf['_SGBD_PASS']);

?>